/**
 *  获取user
 * @returns {any}
 */

let Base64 = require('js-base64').Base64;
export function getUserInfo(){
  return  JSON.parse(Base64.decode(localStorage.getItem('userInfo')));
}


export  function  setUserInfo(userInfo){
localStorage.setItem('userInfo', Base64.encode(JSON.stringify(userInfo)))
}
